<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>对象</title>
	<script type="text/javascript" src="data.js"></script>
	<script type="text/javascript">

		//对象：变量（属性）与函数（方法）的集合体
		//
		
		function Car () {
			this.name="奥迪";
			this.color = "red";
			this.jiliyi = "原装记录仪"
			this.run = function  () {
				alert("可以跑");
			}
			this.zairen = function  () {
				alert("可以载人");
			}
			this.paoniu = function  () {
				alert("可以泡妞");
			}
		}
		var obj = new Car();
		// obj.paoniu();
		// obj.zairen();
		obj.color = "blue";

		obj.jiliyi = "改装记录仪";

		obj.chezheng = function  () {
			alert("do love");
		}

		console.log(obj);

		// alert(obj.color);


		obj1 = new Car();

		// obj1.paoniu();

		// alert(obj1.color);
		// 
		// console.log(window);
		// 
		// window.name ="学并思";

		console.log(window);


		// document
		// 
		// 
		


		obj = new Data();

		var res = obj.max(1235,454);

		alert(res);




	</script>
</head>
<body>
	
</body>
</html>